#ifndef TERMINOSIMPLIFICADO_H_
#define TERMINOSIMPLIFICADO_H_

#include <list>
#include <stdio.h>
#include <string.h>
#include "Parser.h"

struct Doc_frec {
	unsigned short int doc;
	unsigned short int frec;
};

class TerminoSimplificado {
public:
	TerminoSimplificado(Termino_Parseado* ter);
	virtual ~TerminoSimplificado();
	void agregar_doc(unsigned short int doc, unsigned short int frec);
	void grabar(char* buffer, int* pos_actual);
	int size();
private:
	Termino_Parseado ter;
	std::list<Doc_frec*> duplas;
	int tamanio;
	unsigned short int cant_doc;
	unsigned short int nro_doc;
};

#endif /* TERMINOSIMPLIFICADO_H_ */
